package config

import (
	"github.com/hyperledger/fabric-sdk-go/pkg/common/providers/core"
	"github.com/hyperledger/fabric-sdk-go/pkg/core/config"
)

func FromFile(file string) core.ConfigProvider {
	var configProvider core.ConfigProvider
	configProvider = config.FromFile(file)
	return configProvider
}

func FromContext(context string) core.ConfigProvider {
	var configProvider core.ConfigProvider
	configProvider = config.FromRaw([]byte(context), "yaml")
	return configProvider
}
